#ifndef BLE_KEYBOARD_H
#define BLE_KEYBOARD_H

#include <NimBLEHIDDevice.h>
#include <NimBLECharacteristic.h>  // 添加这一行，解决 incomplete type 问题

class BleKeyboard {
public:
  void begin(NimBLEHIDDevice* hid);
  void sendKey(uint8_t keycode);                    // 普通按键
  void sendCombination(uint8_t modifier, uint8_t keycode); // 组合键，如 Ctrl+C

private:
  NimBLECharacteristic* inputKeyboard;
};

#endif
